package com.ylb.rent.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 import com.ylb.rent.dao.ApartmentForbidMapper;
import  com.ylb.rent.entity.ApartmentForbid;
import com.ylb.rent.service.IApartmentForbidService;

/**
 * 公寓安全保障Service业务层处理
 * 
 * @author ylb
 * @date 2023-06-29
 */
@Service
public class ApartmentForbidServiceImpl implements IApartmentForbidService 
{
    @Autowired
    private ApartmentForbidMapper apartmentForbidMapper;

    /**
     * 查询公寓安全保障
     * 
     * @param id 公寓安全保障主键
     * @return 公寓安全保障
     */
    @Override
    public ApartmentForbid selectApartmentForbidById(Long id)
    {
        return apartmentForbidMapper.selectApartmentForbidById(id);
    }

    /**
     * 查询公寓安全保障列表
     * 
     * @param apartmentForbid 公寓安全保障
     * @return 公寓安全保障
     */
    @Override
    public List<ApartmentForbid> selectApartmentForbidList(ApartmentForbid apartmentForbid)
    {
        return apartmentForbidMapper.selectApartmentForbidList(apartmentForbid);
    }

    /**
     * 新增公寓安全保障
     * 
     * @param apartmentForbid 公寓安全保障
     * @return 结果
     */
    @Override
    public int insertApartmentForbid(ApartmentForbid apartmentForbid)
    {
        return apartmentForbidMapper.insertApartmentForbid(apartmentForbid);
    }

    /**
     * 修改公寓安全保障
     * 
     * @param apartmentForbid 公寓安全保障
     * @return 结果
     */
    @Override
    public int updateApartmentForbid(ApartmentForbid apartmentForbid)
    {
        return apartmentForbidMapper.updateApartmentForbid(apartmentForbid);
    }

    /**
     * 批量删除公寓安全保障
     * 
     * @param ids 需要删除的公寓安全保障主键
     * @return 结果
     */
    @Override
    public int deleteApartmentForbidByIds(Long[] ids)
    {
        return apartmentForbidMapper.deleteApartmentForbidByIds(ids);
    }

    /**
     * 删除公寓安全保障信息
     * 
     * @param id 公寓安全保障主键
     * @return 结果
     */
    @Override
    public int deleteApartmentForbidById(Long id)
    {
        return apartmentForbidMapper.deleteApartmentForbidById(id);
    }
}
